import {
	$http
} from '@escook/request-miniprogram'
export default {
	calculate_amount(data) { //计算当前订单金额
		return $http.post('/order/calculate_amount', data)
	},
	driver_check(data) { //司机端听单偏好查询
		return $http.post('/account/driver/check', data)
	},
	driver_orderPreferencesRoute(data) { //司机端添加偏好路线
		return $http.post('/account/driver/orderPreferencesRoute', data)
	},
	driver_addOrderUsualAddress(data) { //司机端添加偏常去路线
		return $http.post('/account/driver/addOrderUsualAddress', data)
	},
	driver_deleteOrderPreferencesRoute(id) { //司机端删除偏好路线设置
		return $http.get('/account/driver/deleteOrderPreferencesRoute/' + id)
	},
	driver_deleteUsualAddress(id) { //司机端删除偏好路线设置
		return $http.get('/account/driver/deleteUsualAddress/' + id)
	},
	driver_preferenceInformation(data) { //司机端添加听单设置
		return $http.post('/account/driver/preferenceInformation', data)
	},
	query_order_list(data) {
		//查询可强订单列表
		return $http.post('/order/order/driver/query_order_list', data)
	},
	//我的订单列表
	my_driver_order(data) {
		return $http.get('/order/order/driver_order/' + data)
	},
	//我的订单详情
	driver_order_detail(data) {
		return $http.get('/order/order/driver_order_detail/' + data)
	},
	//我的运单详情
	driver_waybill_detail(data) {
		return $http.get('/order/order/driver_waybill_detail/' + data)
	},
	modifyWayBillInfoByOrderId(data) {
		//修改订单状态
		return $http.post('/order/order/driver/modifyWayBillInfoByOrderId', data)
	},

	queryDriverCertStatusByUserID(data) {
		//查询司机状态是否认证状态为2
		return $http.post('/account/driver/queryDriverCertStatusByUserID', data)
	},
	modifytransportStatusByOrderId(data) {
		return $http.post('/order/order/modifytransportStatusByOrderId', data)
	},
	driverConfirmOrder(data) {
		return $http.post('/order/order/driverConfirmOrder', data)
	},
	driverConfirmWayBill(data) {
		return $http.post('/order/order/driverConfirmWayBill', data)
	},
	queryDriverStateDetail(data) {
		return $http.post('/order/order/queryDriverStateDetail', data)
	},
	//关闭scket
	closeWebSocketServer(data) {
		return $http.post('/order/order/closeWebSocketServer', data)
	},
	//线路排序
	queryWayBillAddrByWDid(data) {
		return $http.post('/order/order/queryWayBillAddrByWDid', data)
	},
	//线路排序确定
	modifyWayBillAddrSort(data) {
		return $http.post('/order/order/modifyWayBillAddrSort', data)
	},
	driverVirtuallyOrder(data){//司机虚拟接单
		return $http.post('/order/order/driverVirtuallyOrder',data);
	},
	
	listPullDown(data) { //查询运营商
		return $http.get('/account/supplier/listPullDown', data)
	},
	fleetlistPullDown(data) { //查询运营商车队   supplierId
		return $http.get('/account/fleet/listPullDown', data)
	},
	queryDriverAndVehicle(data) { //查询运营商车队的司机   appointSupplierId
		return $http.get('/account/driver/queryDriverAndVehicle', data)
	},
	addCreateOder(data) { //发送平台建单
		return $http.post('/supplier/platform/addCreateOrder', data)
	},
	remindList(data) { //发送平台建单
		return $http.post('/order/message/remindList', data)
	},
	
	driverArrayOrde(data) { //发送扫描建单
		return $http.get('/order/assistOrder/driverArrayOrder', data)
	},
	driverArrayOrderByOrderId(data) { //发送建单详情
		return $http.post('/order/assistOrder/driverArrayOrderByOrderId', data)
	},
	storeNoComparison(data) { //店铺编号比对
		return $http.post('/order/assistOrder/storeNoComparison', data)
	},
	
	
	driverCompleteAssignOrder(data) { //扫码建单
		return $http.post('/order/assistOrder/driverCompleteAssignOrder', data)
	},
	updateStatus(data) { //驳回更新
		return $http.get('/order/order/updateStatus', data)
	},
	updateInformationNode(data) { //驳回图片更新
		return $http.get('/order/order/updateInformationNode', data)
	},
	getHeatMap(data) { //热力图
		return $http.get('/order/platformOrder/getHeatMap', data)
	},
	queryBank(data) { //银行列表
		return $http.get('/order/bank/queryBank', data)
	},
	modifyAnalysisBase(data) { //电子签名生成照片
		return $http.post('/file/modifyAnalysisBase', data)
	},
}